package user_impl

import (
	"hong/uniapp_server/domain/user"
	"hong/uniapp_server/infrstructure/dao"
)

type UserPhotoRepositoryImpl struct {
	userPhotoDao *dao.UserPhotoDao
}

func NewUserPhotoRepositoryImpl(userPhotoDao *dao.UserPhotoDao) *UserPhotoRepositoryImpl {
	return &UserPhotoRepositoryImpl{userPhotoDao: userPhotoDao}
}

func (r *UserPhotoRepositoryImpl) Insert(photo *user.UserPhotoEntity) error {
	return r.userPhotoDao.Insert(photo)
}
